
#include "./util/event.h"
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "./util/hanzi.h"
#include "./util/page.h"



void main()
{

  int flag = 0;
  //  flag :    bind with the page  to control the event , different page has different click events
  //  0 :   home  page
  //  1 :   music page
  //  2 :   movie page
  //  3 :   game page

  //  create a thread to accept click event
  pthread_t t1;
  pthread_create(&t1, NULL, mouse_event, &flag);

  init_homepage();


  // main thread will do not stop util t1 thread end
  pthread_join(t1,NULL);;

}


